package chain_of_responsibility_pattern.v1;

/**
 * 客户端主类
 * @author ricejson
 */
public class Main {
    public static void main(String[] args) {
        Manager jinli = new Manager("金利");
        Manager zongjian = new Manager("宗剑");
        Manager zhongjingli = new Manager("钟精励");
        Request request = new Request();
        request.setRequestType("加薪");
        request.setRequestContent("小菜请求加薪");
        request.setRequestNum(1000);
        jinli.handleRequest("经理", request);
        zongjian.handleRequest("总监", request);
        zhongjingli.handleRequest("总经理", request);
        Request request2 = new Request();
        request2.setRequestType("请假");
        request2.setRequestContent("小菜请求请假");
        request2.setRequestNum(3);
        jinli.handleRequest("经理", request2);
        zongjian.handleRequest("总监", request2);
        zhongjingli.handleRequest("总经理", request2);
    }
}
